/**
 *  *2010-5-16 下午12:38:30  add 
 */
package com.base.myproject.client.HR.bcode;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.base.myproject.client.busi.BaseStore;
import com.base.myproject.client.busi.LasyObejct;
import com.base.myproject.client.busi.BO.BusiObject;
import com.base.myproject.client.jdbc.StoreInfo;
import com.base.myproject.client.ui.BaseGrid;
import com.base.myproject.client.ui.celleditor.BaseComboBoxX;
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
import com.extjs.gxt.ui.client.Style.SelectionMode;
import com.extjs.gxt.ui.client.Style.VerticalAlignment;
import com.extjs.gxt.ui.client.data.ModelType;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
import com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.layout.TableData;
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

/**
 * 人力资源，员工证书资历类
 * 
 * @author Administrator 2010-5-16 javazgw@gmail.com
 */
public class Bcode_Cer extends LayoutContainer implements LasyObejct {

	BaseStore<BusiObject> mainstore = null;

	public Bcode_Cer(BaseStore<BusiObject> mainstore) {
		this.mainstore = mainstore;
		init();
	}

	void init() {
		initwidget();
		searchForEducation.addListener(Events.OnClick, getListener());
		searchForSkill.addListener(Events.OnClick, getListener());
		searchForQuality.addListener(Events.OnClick, getListener());
	}
/****************************************/	
	  protected void onRender(Element parent, int pos) {  
		     super.onRender(parent, pos);  
		     VerticalPanel vp = new VerticalPanel();  
		     vp.setSpacing(3);  

		     TabPanel panel = new TabPanel();  
		     panel.setPlain(true);  
		     panel.setSize(770, 426);  
		   
		     
		     
		     
		     TabItem jycd = new TabItem("教育程度");  
		     jycd.addStyleName("pad-text");//添加css的class name
		     VerticalPanel vp_education = new VerticalPanel();
		     vp_education.setSpacing(5);
		     vp_education.add(createEducationForm());
		     vp_education.add(createbcode_educationGrid());
		     jycd.add(vp_education);
		     panel.add(jycd);  
		   
		     
		     
		     TabItem zige = new TabItem("资格");  
		     zige.addStyleName("pad-text");  
		     VerticalPanel vp_quality = new VerticalPanel();
		     vp_quality.setSpacing(5);
		     vp_quality.add(createQualityForm());
		     vp_quality.add(create_bcode_quality_Grid());
		     zige.add(vp_quality);
		     panel.add(zige);  
		   
		     
		     
		     
		     TabItem ji_neng = new TabItem("职称");  
		     ji_neng.addStyleName("pad-text"); 
		     VerticalPanel vp_skill = new VerticalPanel();
		     vp_skill.setSpacing(5);
		     vp_skill.add(createSkillForm());
		     vp_skill.add(create_bcode_skill_Grid());
		     ji_neng.add(vp_skill);
		     panel.add(ji_neng);  
		   
		     
		     
		     
		     TabItem z_j = new TabItem("证件");  
		     z_j.addStyleName("pad-text");
		     z_j.add(create_bcode_cer_Grid());
		     panel.add(z_j);  
		   
		     
		     
		     
		     //隐藏一个tab 不可以用效果
		     //TabItem disabled = new TabItem("Disabled");  
		     //disabled.setEnabled(false);  
		     //panel.add(disabled);  
		   
		     
		     
		     //vp.add(folder);  
		     vp.add(panel);  
		      add(vp);  
		   }  	
	
	
	
	
/***********************************/	

	Widget initwidget() {

		return null;
	}

	BaseStore<BusiObject> bcode_education_store = null;

	BaseStore<BusiObject> getbcode_educationStore() {
		if (bcode_education_store == null) {
			createbcode_educationStore();
		}
		return bcode_education_store;
	}

	BaseStore<BusiObject> createbcode_educationStore() {
		ModelType type = new ModelType();
		type.setRoot("records");
		type.setRecordName("record");
		type.setTotalName("totle");
		type.addField("icode");
		type.getField("icode").setType(Long.class);
		type.addField("bcode");
		type.getField("bcode").setType(String.class);
		type.addField("no_");
		type.getField("no_").setType(String.class);
		type.addField("Major");
		type.getField("Major").setType(String.class);
		type.addField("education");
		type.getField("education").setType(String.class);
		type.addField("xuewei");
		type.getField("xuewei").setType(String.class);
		type.addField("cer");
		type.getField("cer").setType(String.class);
		type.addField("Organization");
		type.getField("Organization").setType(String.class);
		type.addField("Country");
		type.getField("Country").setType(String.class);
		type.addField("startdate");
		type.getField("startdate").setType(Date.class);
		type.addField("enddate");
		type.getField("enddate").setType(Date.class);
		type.addField("city");
		type.getField("city").setType(String.class);
		type.addField("getdate");
		type.getField("getdate").setType(String.class);
		type.addField("mark");
		type.getField("mark").setType(String.class);
		StoreInfo info = new StoreInfo();
		info.setTablename("bcode_education");
		info.setKeyname(new String[] { "icode" });
		info.setSql("select * from bcode_education where bcode ='{bcode}'");
		 info.setParent(mainstore);// 关联主表
		 info.setLinkparentcolumns(new String[] { "bcode" }); // 关联主表字段
		 info.setLinkparent_chile_columns(new String[] { "bcode" });//
		// 关联主表字段
		bcode_education_store = new BaseStore<BusiObject>(type, info);
		return bcode_education_store;
	}
	
	BaseComboBoxX hr_education = new BaseComboBoxX("name","dictionary", "where type='hr_education'");
	DateField startDate = new DateField();
	DateField endDate = new DateField();
	Button searchForEducation = new Button("查询");// 查询按钮
	private FormPanel createEducationForm() {
		FormPanel form = new FormPanel();
		startDate.getPropertyEditor().setFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		endDate.getPropertyEditor().setFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		

		TableLayout tl = new TableLayout(7);

		form.setWidth(913);
		form.setPadding(4);
		form.setBodyBorder(false);
		form.setHeaderVisible(false);
		TableData td = new TableData();
		td.setRowspan(1);
		td.setHorizontalAlign(HorizontalAlignment.LEFT);
		td.setVerticalAlign(VerticalAlignment.TOP);
		td.setPadding(2);

		form.add(new Label("教育程度:"), td);
		
		form.add(hr_education, td);
		form.add(new Label("获得日期从:"), td);
		form.add(startDate, td);
		form.add(new Label("到:"), td);
		form.add(endDate, td);
		form.add(searchForEducation);
		
		form.setLayout(tl);

		return form;
	}

	BaseGrid<BusiObject> bcode_educationgrid = null;

	BaseGrid<BusiObject> createbcode_educationGrid() {
		CheckBoxSelectionModel<BusiObject> cbs = new CheckBoxSelectionModel<BusiObject>();
		List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
		columns.add(cbs.getColumn());


		ColumnConfig C4 = new ColumnConfig("Major", "主修", 60);
		C4.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C4);
		ColumnConfig C5 = new ColumnConfig("education", "教育程度", 60);
		BaseComboBoxX bc5 = new BaseComboBoxX("name","dictionary", "where type='hr_education'");
		C5.setEditor(bc5.getCellEditor());
		columns.add(C5);
		ColumnConfig xuewei = new ColumnConfig("xuewei", "学位", 60);
		BaseComboBoxX xueweiBox  = new BaseComboBoxX("name","dictionary", "where type='education'");
		xuewei.setEditor(xueweiBox.getCellEditor());
		columns.add(xuewei);
		ColumnConfig C6 = new ColumnConfig("cer", "证书", 60);
		C6.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C6);
		ColumnConfig C7 = new ColumnConfig("Organization", "机构", 80);
		C7.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C7);
		ColumnConfig C8 = new ColumnConfig("Country", "国家", 60);
		BaseComboBoxX bc8 = new BaseComboBoxX("name","dictionary", "where type='hr_Country'");
		C8.setEditor(bc8.getCellEditor());
		columns.add(C8);
		ColumnConfig C9 = new ColumnConfig("startdate", "开始日期", 80);
		DateField dateField9 = new DateField();  
	    dateField9.getPropertyEditor().setFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));  
	    C9.setEditor(new CellEditor(dateField9));
	    C9.setDateTimeFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		columns.add(C9);
		ColumnConfig C10 = new ColumnConfig("enddate", "结束日期", 80);
		DateField dateField10 = new DateField();  
	    dateField10.getPropertyEditor().setFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));  
	    C10.setEditor(new CellEditor(dateField10));
	    C10.setDateTimeFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		columns.add(C10);
		ColumnConfig C11 = new ColumnConfig("city", "城市", 60);
		C11.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C11);
		ColumnConfig C12 = new ColumnConfig("getdate", "获得日期", 80);
		DateField dateField12 = new DateField();  
	    dateField12.getPropertyEditor().setFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));  
	    C12.setEditor(new CellEditor(dateField12));
	    C12.setDateTimeFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		columns.add(C12);
		ColumnConfig C13 = new ColumnConfig("mark", "备注", 140);
		C13.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C13);

		ColumnModel cm = new ColumnModel(columns);
		bcode_educationgrid = new BaseGrid<BusiObject>(getbcode_educationStore(), cm,
				true, true);
		cbs.setSelectionMode(SelectionMode.SINGLE);
		bcode_educationgrid.setSelectionModel(cbs);
		bcode_educationgrid.setHeight(370);
		//bcode_educationgrid.getBg().setWidth(760);
		bcode_educationgrid.setBorders(false);
		//bcode_educationgrid.getBg().setStyleName("grid_css1");
		return bcode_educationgrid;
	}

	int sync = 0;
	Listener<BaseEvent> defaultlistener;

	Listener<BaseEvent> getListener() {
		if (defaultlistener != null) {
			return defaultlistener;
		}

		defaultlistener = new Listener<BaseEvent>() {
			public void handleEvent(BaseEvent be) {
				sync++;
				try {
					if (sync == 1) {
						String bcode = mainstore.getAt(0).get("bcode");
						
						if (be.getType() == Events.Select) {
							if (be.getSource().equals("按钮变量")) {

							}
						} else if (be.getType() == Events.Change) {
							if (be.getSource().equals("输入型变量")) {

							}
						} else if (be.getType() == Events.KeyUp) {
							if (be instanceof ComponentEvent) {
								if (((ComponentEvent) be).getKeyCode() == 13) // 回车
								{
								}
							}
						} else if (be.getType() == Events.OnClick) {
							if (be.getSource().equals(searchForEducation)) {
								String sql = "select * from bcode_education where bcode ='" + bcode + "'";
								String where = "";
								if (!hr_education.getRawValue().equals("")) {
									where += " and education = '" + hr_education.getRawValue() + "'";
								}
								if (!startDate.getRawValue().equals("")) {
									where += " and getdate >= '" + startDate.getRawValue() + "'";
								}
								if (!endDate.getRawValue().equals("")) {
									where += " and getdate <= '" + endDate.getRawValue() + "'";
								}
								
								bcode_educationgrid.getStore().getStoreinfo().setSql(sql + where);
								bcode_educationgrid.getStore().reload();
							} else if (be.getSource().equals(searchForQuality)) {
								String sql = "select * from bcode_quality where bcode = '" + bcode + "'";
								String where = "";
								if (!quality.getRawValue().equals("")) {
									where += " and Qualifications='" + quality.getRawValue() + "'";
								}
								bcode_quality_grid.getStore().getStoreinfo().setSql(sql + where);
								bcode_quality_grid.getStore().reload();
							} else if (be.getSource().equals(searchForSkill)) {
								String sql = "select * from bcode_skill where bcode = '" + bcode + "'";
								String where = "";
								if (!skill.getRawValue().equals("")) {
									where += " and Skill='" + skill.getRawValue() + "'";
								}
								bcode_skill_grid.getStore().getStoreinfo().setSql(sql + where);
								bcode_skill_grid.getStore().reload();
							}
						}
					}
				} finally {
					sync--;
				}
			}

		};
		return defaultlistener;
	}

	BaseStore<BusiObject> bcode_quality_store = null;

	BaseStore<BusiObject> get_bcode_quality_Store() {
		if (bcode_quality_store == null) {
			create_bcode_quality_Store();
		}
		return bcode_quality_store;
	}
	
	TextField<String> quality = new TextField<String>();
	Button searchForQuality = new Button("查询");// 查询按钮
	private FormPanel createQualityForm() {
		FormPanel form = new FormPanel();

		TableLayout tl = new TableLayout(7);

		form.setWidth(913);
		form.setPadding(4);
		form.setBodyBorder(false);
		form.setHeaderVisible(false);
		TableData td = new TableData();
		td.setRowspan(1);
		td.setHorizontalAlign(HorizontalAlignment.LEFT);
		td.setVerticalAlign(VerticalAlignment.TOP);
		td.setPadding(2);

		form.add(new Label("资格:"), td);
		form.add(quality, td);
		form.add(searchForQuality);
		
		form.setLayout(tl);

		return form;
	}

	BaseStore<BusiObject> create_bcode_quality_Store() {
		ModelType type = new ModelType();
		type.setRoot("records");
		type.setRecordName("record");
		type.setTotalName("totle");
		type.addField("icode");
		type.getField("icode").setType(Long.class);
		type.addField("bcode");
		type.getField("bcode").setType(String.class);
		type.addField("Qualifications");
		type.getField("Qualifications").setType(String.class);
		type.addField("Organization");
		type.getField("Organization").setType(String.class);
		type.addField("menber");
		type.getField("menber").setType(String.class);
		type.addField("description");
		type.getField("description").setType(String.class);
		type.addField("no_");
		type.getField("no_").setType(String.class);
		StoreInfo info = new StoreInfo();
		info.setTablename("bcode_quality");
		info.setKeyname(new String[] { "icode" });
		info.setSql("select * from bcode_quality where bcode ='{bcode}'");
		 info.setParent(mainstore);// 关联主表
		 info.setLinkparentcolumns(new String[] { "bcode" }); // 关联主表字段
		 info.setLinkparent_chile_columns(new String[] { "bcode" });//
		// 关联主表字段
		bcode_quality_store = new BaseStore<BusiObject>(type, info);
		return bcode_quality_store;
	}

	BaseGrid<BusiObject> bcode_quality_grid = null;

	BaseGrid<BusiObject> create_bcode_quality_Grid() {
		CheckBoxSelectionModel<BusiObject> cbs = new CheckBoxSelectionModel<BusiObject>();
		List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
		columns.add(cbs.getColumn());


		ColumnConfig C3 = new ColumnConfig("Qualifications", "资格",
				80);
		C3.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C3);
		ColumnConfig C4 = new ColumnConfig("Organization", "组织", 80);
		C4.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C4);
		ColumnConfig C5 = new ColumnConfig("menber", "会员", 80);
		C5.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C5);
		ColumnConfig C6 = new ColumnConfig("description", "描述", 150);
		C6.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C6);

		ColumnModel cm = new ColumnModel(columns);
		bcode_quality_grid = new BaseGrid<BusiObject>(get_bcode_quality_Store(), cm,
				true, true);
		cbs.setSelectionMode(SelectionMode.SINGLE);
		bcode_quality_grid.setSelectionModel(cbs);
		bcode_quality_grid.setHeight(370);
		//bcode_quality_grid.getBg().setWidth(760);
		bcode_quality_grid.setBorders(false);
		return bcode_quality_grid;
	}

	BaseStore<BusiObject> bcode_skill_store = null;

	BaseStore<BusiObject> get_bcode_skill_Store() {
		if (bcode_skill_store == null) {
			create_bcode_skill_Store();
		}
		return bcode_skill_store;
	}

	BaseStore<BusiObject> create_bcode_skill_Store() {
		ModelType type = new ModelType();
		type.setRoot("records");
		type.setRecordName("record");
		type.setTotalName("totle");
		type.addField("icode");
		type.getField("icode").setType(Long.class);
		type.addField("bcode");
		type.getField("bcode").setType(String.class);
		type.addField("Skill");
		type.getField("Skill").setType(String.class);
		type.addField("mark");
		type.getField("mark").setType(String.class);
		type.addField("no_");
		type.getField("no_").setType(String.class);
		StoreInfo info = new StoreInfo();
		info.setTablename("bcode_skill");
		info.setKeyname(new String[] { "icode" });
		info.setSql("select * from bcode_skill where bcode ='{bcode}'");
		 info.setParent(mainstore);// 关联主表
		 info.setLinkparentcolumns(new String[] { "bcode" }); // 关联主表字段
		 info.setLinkparent_chile_columns(new String[] { "bcode" });//
		// 关联主表字段
		bcode_skill_store = new BaseStore<BusiObject>(type, info);
		return bcode_skill_store;
	}
	
	TextField<String> skill = new TextField<String>();
	Button searchForSkill = new Button("查询");// 查询按钮
	private FormPanel createSkillForm() {
		FormPanel form = new FormPanel();

		TableLayout tl = new TableLayout(7);

		form.setWidth(913);
		form.setPadding(4);
		form.setBodyBorder(false);
		form.setHeaderVisible(false);
		TableData td = new TableData();
		td.setRowspan(1);
		td.setHorizontalAlign(HorizontalAlignment.LEFT);
		td.setVerticalAlign(VerticalAlignment.TOP);
		td.setPadding(2);

		form.add(new Label("职称:"), td);
		form.add(skill, td);
		form.add(searchForSkill);
		
		form.setLayout(tl);

		return form;
	}

	BaseGrid<BusiObject> bcode_skill_grid = null;

	BaseGrid<BusiObject> create_bcode_skill_Grid() {
		CheckBoxSelectionModel<BusiObject> cbs = new CheckBoxSelectionModel<BusiObject>();
		List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
		columns.add(cbs.getColumn());

//		ColumnConfig C1 = new ColumnConfig("icode", "icode", 80);
//		columns.add(C1);
//		ColumnConfig C2 = new ColumnConfig("bcode", "bcode", 80);
//		columns.add(C2);
		ColumnConfig C3 = new ColumnConfig("Skill", "职称", 80);
		C3.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C3);
		ColumnConfig C4 = new ColumnConfig("mark", "备注", 80);
		C4.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C4);
//		ColumnConfig C5 = new ColumnConfig("no_", "no_", 80);
//		columns.add(C5);

		ColumnModel cm = new ColumnModel(columns);
		bcode_skill_grid = new BaseGrid<BusiObject>(get_bcode_skill_Store(), cm, true,
				true);
		cbs.setSelectionMode(SelectionMode.SINGLE);
		bcode_skill_grid.setSelectionModel(cbs);
		bcode_skill_grid.setHeight(370);
		bcode_skill_grid.setBorders(false);
		return bcode_skill_grid;
	}

	BaseStore<BusiObject> bcode_cer_store = null;

	BaseStore<BusiObject> get_bcode_cer_Store() {
		if (bcode_cer_store == null) {
			create_bcode_cer_Store();
		}
		return bcode_cer_store;
	}

	BaseStore<BusiObject> create_bcode_cer_Store() {
		ModelType type = new ModelType();
		type.setRoot("records");
		type.setRecordName("record");
		type.setTotalName("totle");
		type.addField("icode");
		type.getField("icode").setType(Long.class);
		type.addField("bcode");
		type.getField("bcode").setType(String.class);
		type.addField("no_");
		type.getField("no_").setType(String.class);
		type.addField("cerSpecies");
		type.getField("cerSpecies").setType(String.class);
		type.addField("certype");
		type.getField("certype").setType(String.class);
		type.addField("cerno");
		type.getField("cerno").setType(String.class);
		type.addField("DMSno");
		type.getField("DMSno").setType(String.class);
		type.addField("availableDate");
		type.getField("availableDate").setType(Date.class);
		type.addField("mark");
		type.getField("mark").setType(String.class);
		StoreInfo info = new StoreInfo();
		info.setTablename("bcode_cer");
		info.setKeyname(new String[] { "icode" });
		info.setSql("select * from bcode_cer where bcode ='{bcode}'");
		 info.setParent(mainstore);// 关联主表
		 info.setLinkparentcolumns(new String[] { "bcode" }); // 关联主表字段
		 info.setLinkparent_chile_columns(new String[] { "bcode" });//
		// 关联主表字段
		bcode_cer_store = new BaseStore<BusiObject>(type, info);
		return bcode_cer_store;
	}

	BaseGrid<BusiObject> bcode_cer_grid = null;

	BaseGrid<BusiObject> create_bcode_cer_Grid() {
		CheckBoxSelectionModel<BusiObject> cbs = new CheckBoxSelectionModel<BusiObject>();
		List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
		columns.add(cbs.getColumn());

		ColumnConfig C4 = new ColumnConfig("cerSpecies", "证书种类", 80);
		BaseComboBoxX bc1 = new BaseComboBoxX("name","dictionary", "where type='hr_cardtype'");
		C4.setEditor(bc1.getCellEditor());
		columns.add(C4);
		
		ColumnConfig C5 = new ColumnConfig("certype", "证书类型", 100);
		C5.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C5);
		ColumnConfig C6 = new ColumnConfig("cerno", "证书编码", 100);
		C6.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C6);

		ColumnConfig C8 = new ColumnConfig("availableDate", "有效日期", 100);
		DateField datefield = new DateField();
		datefield.setName("availableDate");
		C8.setEditor(new CellEditor(datefield));
		C8.setDateTimeFormat(DateTimeFormat.getFormat("yyyy-MM-dd"));
		columns.add(C8);
		
		ColumnConfig C9 = new ColumnConfig("mark", "备注", 200);
		C9.setEditor(new CellEditor(new TextField<String>()));
		columns.add(C9);

		ColumnModel cm = new ColumnModel(columns);
		bcode_cer_grid = new BaseGrid<BusiObject>(get_bcode_cer_Store(), cm);
		cbs.setSelectionMode(SelectionMode.SINGLE);
		bcode_cer_grid.setSelectionModel(cbs);
		bcode_cer_grid.setHeight(402);
		bcode_cer_grid.setBorders(false);
		
		return bcode_cer_grid;
	}

	@Override
	public boolean isopen() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean open() {
		// TODO Auto-generated method stub
		return false;
	}

}
